#include <iostream>
#include <vector>
#include <list>
#include <iterator>
#include <algorithm>
#include <set>

using namespace std;


void func(int v){
    cout << v << " ";
}

void test0(){
    vector<int> vec = {1, 2, 3, 5, 8};
//    lambda表达式
    for_each(vec.begin(), vec.end(), [](int &value)->void{
        value++;
    });

    copy(vec.begin(), vec.end(), ostream_iterator<int>(cout, " "));

}

int main() {
    test0();
    return 0;
}
